<form action="<?php echo $this->escape($this->element->getAction()) ?>" method="<?php echo $this->escape($this->element->getMethod())?>" enctype="multipart/form-data">
<?php 
$temp = Zend_Registry::get('loggedin_user');
$photo = $this->thumbnail()->scale(!empty($temp->company->image) ? $temp->company->image : '', 150, 150);
?>

    <fieldset class="info">
        <legend><?php echo $this->t('基本信息')?></legend>
        <input type="hidden" id="adid" name="adid" value="<?php echo $temp->company->_id?>">
        <div class="required"><span class="required">*</span><?php echo $this->t('必须填写')?></div>
        <h3><?php echo $this->t('公司基本资料')?></h3>
        <div class="company text">
            <label><span class="required">*</span><?php echo $this->t('公司名称')?></label>
            <?php echo $this->element->company_name ?>            
            <span class="remark">4 - 30 个字</span>
        </div>
        <div class="company phone text col6">
            <label><?php echo $this->t('公司电话')?></label>
			<?php echo $this->element->company_phone ?>
        </div>
        <div class="fax text col6">
            <label><?php echo $this->t('传真号码')?></label>
			<?php echo $this->element->company_fax ?>
        </div>
		<div class="category select col6">
            <label><span class="required">*</span><?php echo $this->t('业务性质')?></label>
            <?php echo $this->element->business_category ?>
        </div>
		<div class="staff text col6">
            <label><?php echo $this->t('员工人数')?></label>
            <?php echo $this->element->number_employees ?>
        </div>
        <div class="select text address">
            <label><span class="required">*</span><?php echo $this->t('公司地址')?></label>
			<?php echo $this->element->area_l1 ?>
			<?php echo $this->element->area_l2 ?>
            <?php echo $this->element->company_mail_address ?>
        </div>
        <div class="url text">
            <label><?php echo $this->t('企业网站')?></label>
			<?php echo $this->element->company_website ?>
        </div>
        <div class="weibo text">
            <label><?php echo $this->t('微博网址')?></label>
			<?php echo $this->element->company_weibo ?>
        </div>
         <div class="about us textarea">
            <label><?php echo $this->t('公司简介')?></label>
			<?php echo $this->element->about_us ?>
            <span class="remark"><?php echo $this->t('简短介绍你的公司及其业务，如公司背景、服务、产品、客户等')?></span>
        </div>
      <div id="form_uploader_cnt" class="photo_uploader">
            <div id="form_uploader" class="button">
                <label><?php echo $this->t('商标(图片)')?></label>
                <span class="remark"><?php echo $this->t('请上传格式为JPEG，JPG，PNG或TIF的图片，每张不超过4M。')?></span>
                <div id="container_uploader1" class="button">
                    <button id="pickfiles1" type="button"><?php echo $this->t('浏览...')?></button>
                </div>
                <div class="file logo_uploader_ie">
                    <input type="file" id="file_upload_logo" name="uploadlogo">
                </div>
            </div>
 			<div rel="8" id="profile_pic_cnt2">
              <p id="no_photo_selected" style="display: none; "><?php echo $this->t('没有选定图片')?></p>
              <div id="company_logo_cont" class="selected" <?php if(empty($temp->company->image)): ?> style="display:none;" <?php endif;?>>
                <figure><a href="#"><img id="company_logo" src="<?php if(!empty($temp->company->image)): echo $photo; endif;?>"></a></figure>
                <a class="remove_photo2" rel="0"><?php echo $this->t('移除')?></a><a class="feature_photo" rel="0"><?php echo $this->t('封面图片')?></a>
			</div>
            </div>
        </div>
        <h3><?php echo $this->t('业务联络资料')?></h3>
        <div class="desc">
            <p><?php echo $this->t('请提供业务联络资料，以便客户联系你')?></p>
        </div>
        <div class="last name text col6">
            <label><span class="required">*</span><?php echo $this->t('联系人姓名')?></label>
			<?php echo $this->element->contact_name ?>
        </div>
        <div class="dept text col6">
            <label><?php echo $this->t('部门')?></label>
			<?php echo $this->element->contact_department ?>
        </div>
        <div class="job title text col6">
            <label><?php echo $this->t('职位')?></label>
			<?php echo $this->element->contact_job_title ?>
        </div>
        <div class="phone phone text col6">
            <label><span class="required">*</span><?php echo $this->t('电话')?></label>
			<?php echo $this->element->contact_phone ?>
        </div>
        <div class="email text col6">
            <label><span class="required">*</span><?php echo $this->t('邮箱')?></label>
			<?php echo $this->element->contact_email ?>
            <span class="remark"><?php echo $this->t('如 info@companyabc.com')?></span>
        </div>
        <div class="msn_qq text col6">
            <label><?php echo $this->t('MSN/QQ')?></label>
			<?php echo $this->element->contact_messenger ?>
        </div>
    </fieldset>
    <fieldset class="photo">
        <legend><?php echo $this->t('图片')?></legend>
        <?php echo $this->Partial('/index/photo-uploader.phtml', 'listing', array('company' => $temp->company));?>
    </fieldset>
    <div class="action">
        <div class="button em">
            <button type="submit"><?php echo $this->t('确认')?></button>
        </div>
    </div>
</form>
